package com.topisv.tms.rest.qimen.qmentity.request.goodsinfo;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

import org.hibernate.validator.constraints.NotBlank;

/**
 * 单商品同步实体
 *  Date          Author       Version       Description
 * ----------------------------------------------------------
 *  2015-5-5      CC            1.0           Create
 */
@XmlRootElement(name = "request")
@XmlAccessorType(XmlAccessType.FIELD)
public class SingleGoodsInfo {
    
    @NotBlank
	@XmlElement(name = "actionType")
	private String actionType;
    
    @NotBlank
	@XmlElement(name = "warehouseCode")
	private String warehouseCode;
    
    @NotBlank
	@XmlElement(name = "ownerCode")
	private String ownerCode;
	@XmlElement(name = "supplierCode")
	private String supplierCode;
	@XmlElement(name = "supplierName")
	private String supplierName;
	
	@Valid
	@NotNull
	@XmlElement(name = "item")
	private SingleGoodsInfoItem item;

	public String getActionType() {
		return actionType;
	}

	public void setActionType(String actionType) {
		this.actionType = actionType;
	}

	public String getWarehouseCode() {
		return warehouseCode;
	}

	public void setWarehouseCode(String warehouseCode) {
		this.warehouseCode = warehouseCode;
	}

	public String getOwnerCode() {
		return ownerCode;
	}

	public void setOwnerCode(String ownerCode) {
		this.ownerCode = ownerCode;
	}

	public String getSupplierCode() {
		return supplierCode;
	}

	public void setSupplierCode(String supplierCode) {
		this.supplierCode = supplierCode;
	}

	public String getSupplierName() {
		return supplierName;
	}

	public void setSupplierName(String supplierName) {
		this.supplierName = supplierName;
	}

	public SingleGoodsInfoItem getItem() {
		return item;
	}

	public void setItem(SingleGoodsInfoItem item) {
		this.item = item;
	}
}
